package com.example.databasepj.entity;

import lombok.Data;
@Data
public class MerchantReviewEntity {
    //
    private int merchant_review_id;
    private int user_id;
    private int merchant_id;
    private int order_id;
    private int rating; // 可以使用枚举代替整型
    private String comment;

    public MerchantReviewEntity() {
    }

    public MerchantReviewEntity(int merchant_review_id, int user_id, int merchant_id, int order_id, int rating) {
        this.merchant_review_id = merchant_review_id;
        this.user_id = user_id;
        this.merchant_id = merchant_id;
        this.order_id = order_id;
        this.rating = rating;
    }

    public MerchantReviewEntity(int merchant_review_id, int user_id, int merchant_id, int order_id, int rating, String comment) {
        this.merchant_review_id = merchant_review_id;
        this.user_id = user_id;
        this.merchant_id = merchant_id;
        this.order_id = order_id;
        this.rating = rating;
        this.comment = comment;
    }

    public MerchantReviewEntity(int merchant_review_id, int user_id, int merchant_id, int order_id, String comment) {
        this.merchant_review_id = merchant_review_id;
        this.user_id = user_id;
        this.merchant_id = merchant_id;
        this.order_id = order_id;
        this.comment = comment;
    }

    public int getMerchant_review_id() {
        return merchant_review_id;
    }

    public void setMerchant_review_id(int merchant_review_id) {
        this.merchant_review_id = merchant_review_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
